package xcmg.device.dao.entity.salesReturn;


import xcmg.device.dao.entity.WarehouseArea;

import java.util.Date;

/**
 * Created by LiChangjiang on 2018/3/6 0006.
 */
public class SalesReturnInDO extends WarehouseArea
{
    //已过账
    public static final Short POSTING_STATE_OK = 3;

    private String id;
    private String applyId;
    private String applyNo;
    private String returnNo;
    private String userId;
    private String userName;
    private String orgId;
    private String orgName;
    private Date createTime;
    private Date updateTime;
    private Integer status;
    private String remark;
    private String dept;

    /**
     * 过账状态 0未过账1部分过账2已过账
     */
    private Short postingState;

    /**
     * 是否入库（0未入库，1入库中，2入库完成）
     */
    private Integer isIn;
    private String warehouseCode;

    /**
     * 过账后sap返回的订单号
     */
    private String sapOrderNo;

    private String sapErrorMsg;

    public String getRemark()
    {
        return remark;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    public String getApplyNo()
    {
        return applyNo;
    }

    public void setApplyNo(String applyNo)
    {
        this.applyNo = applyNo;
    }

    public Integer getIsIn()
    {
        return isIn;
    }

    public void setIsIn(Integer isIn)
    {
        this.isIn = isIn;
    }

    public String getWarehouseCode()
    {
        return warehouseCode;
    }

    public void setWarehouseCode(String warehouseCode)
    {
        this.warehouseCode = warehouseCode;
    }

    public String getId()
    {
        return id;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getApplyId()
    {
        return applyId;
    }

    public void setApplyId(String applyId)
    {
        this.applyId = applyId;
    }

    public String getReturnNo()
    {
        return returnNo;
    }

    public void setReturnNo(String returnNo)
    {
        this.returnNo = returnNo;
    }

    public String getUserId()
    {
        return userId;
    }

    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getOrgId()
    {
        return orgId;
    }

    public void setOrgId(String orgId)
    {
        this.orgId = orgId;
    }

    public String getOrgName()
    {
        return orgName;
    }

    public void setOrgName(String orgName)
    {
        this.orgName = orgName;
    }

    public Date getCreateTime()
    {
        return createTime;
    }

    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public Date getUpdateTime()
    {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public String getDept()
    {
        return dept;
    }

    public void setDept(String dept)
    {
        this.dept = dept;
    }

    public Short getPostingState() {
        return postingState;
    }

    public void setPostingState(Short postingState) {
        this.postingState = postingState;
    }

    public boolean hasPosted() {
        return POSTING_STATE_OK.equals(this.postingState);
    }

    public String getSapOrderNo() {
        return sapOrderNo;
    }

    public void setSapOrderNo(String sapOrderNo) {
        this.sapOrderNo = sapOrderNo;
    }

    public String getSapErrorMsg() {
        return sapErrorMsg;
    }

    public void setSapErrorMsg(String sapErrorMsg) {
        this.sapErrorMsg = sapErrorMsg;
    }
}
